<link rel="stylesheet" href="css/contractLibrary/contractLibraryView.css">
<!--最大父级 合同库-->
<div class="contractLibraryView wt-scroll" >
    <div class="orderReceiving-details-top">
        <div class="top-left" ng-click="cancel()">
          <i class="iconfont">&#xe6a5;</i>返回
        </div>
        <div class="top-center">{{tempInfo.contractName}}</div>
        <div class="top-right">
          <div class="line">
              <a class="fr btn"  ng-click="downloadFileProgress(tempInfo)"><i class="iconfont"></i>下载</a>
              <a class="fr btn" ng-show="tempInfo.isCollection == '1'" ng-click="delCollect(tempInfo)"><i class="iconfont">&#xe6ab;</i>取消收藏</a>
              <a class="fr btn" ng-show="tempInfo.isCollection == '0'" ng-click="addCollect(tempInfo)"><i class="iconfont" style="color: #000;">&#xe6ac;</i>收藏</a>
          </div>

        </div>
    </div>
    <div class="content-left d_content_left wt-scroll">
        <div class="base-info">
            <div class="desc-title">
                <i></i><span>模板名称：</span>
            </div>
            <div class="desc-cont">{{tempInfo.contractName}}</div>

            <div class="desc-title">
                <i></i><span>模板描述：</span>
            </div>
            <div class="desc-cont">{{tempInfo.description}}</div>

            <div class="desc-title">
                <i></i><span>模板类型：</span>
            </div>
            <div class="desc-cont">{{tempInfo.parentName}}</div>

            <div class="desc-title" ng-show="tempInfo.parentName=='非诉'">
                <i></i><span>服务类型：</span>
            </div>
            <div class="desc-title" ng-show="tempInfo.parentName!='非诉'">
                <i></i><span>服务类型：</span>
            </div>
            <div class="desc-cont">{{tempInfo.typeName}}</div>

            <div class="desc-title">
                <i></i><span>浏览量：</span>
            </div>
            <div class="desc-cont">{{tempInfo.readCount}}</div>

            <div class="desc-title">
                <i></i><span>下载量：</span>
            </div>
            <div class="desc-cont">{{tempInfo.downloadCount}}</div>


        </div>
    </div>
    <div class="d_content_right wt-scroll" style="overflow-y:auto; ">
      <!--img ng-show="curImg == ''" class="library-img" src="img/111.jpg" class="img-responsive" alt="Cinque Terre"-->
      <!--<img class="library-img" src="data:image/jpg;base64,{{curImg}}" class="img-responsive" alt="加载中...">-->
        <span ng-show="loading">加载中...</span>
        <img ng-repeat="item in imgList" class="library-img" src="data:image/jpg;base64,{{item}}" class="img-responsive" alt="加载中...">
    </div>
</div>



<script>
  $(window).ready(function () {

    /*设置屏幕高度*/
    setHeight();
    function setHeight() {
      var maxHeight = $(window).height()-129 + 'px';
      var maxHeightT = $(window).height()-195 + 'px';
      $(".contractLibraryView").css("height",maxHeight);
      $(".d_content_left").css("height",maxHeightT);
      $(".d_content_right").css("height",maxHeightT);
      //$(".content-left").css("height",maxHeight);
      $(".img-area").css("height",maxHeightT);

    };
    $(window).resize(function() {
      setHeight();
    });

  })
</script>
